//
//  NSString+Size.m
//  新闻练习
//
//  Created by MS on 15-11-14.
//  Copyright (c) 2015年 桂召伟. All rights reserved.
//

#import "NSString+Size.h"

@implementation NSString (Size)
-(CGSize)sizeWithString:(CGSize)size Font:(CGFloat)font
{
    
    NSDictionary * attributes =@{NSFontAttributeName:[UIFont systemFontOfSize:font]};
    return  [self boundingRectWithSize:size options:NSStringDrawingUsesLineFragmentOrigin attributes:attributes context:nil].size;
    
}
@end
